home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / getabi.z / getabi
Encoding:
Text File  |  1998-10-20  |  3.3 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ggggeeeettttaaaabbbbiiii((((3333CCCC))))                                                          ggggeeeettttaaaabbbbiiii((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _gggg_eeee_tttt_aaaa_bbbb_iiii - get ABI from argument vector
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_gggg_eeee_tttt_aaaa_bbbb_iiii_...._hhhh_>>>>
  13.  
  14.      _aaaa_bbbb_iiii______tttt _gggg_eeee_tttt_aaaa_bbbb_iiii _((((_iiii_nnnn_tttt _gggg_eeee_nnnn_eeee_rrrr_iiii_cccc______ssss_iiii_zzzz_eeee_,,,, _iiii_nnnn_tttt _mmmm_oooo_dddd_iiii_ffff_yyyy______aaaa_bbbb_iiii______aaaa_rrrr_gggg_,,,, _cccc_hhhh_aaaa_rrrr _****_****_****_aaaa_rrrr_gggg_vvvv_,,,, _iiii_nnnn_tttt
  15.      _****_aaaa_rrrr_gggg_cccc_))))_;;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      _gggg_eeee_tttt_aaaa_bbbb_iiii is used to determine whether to use the 32-bit ABI (_a_b_i_3_2) or the
  19.      64-bit ABI (_a_b_i_6_4). First it checks the _a_r_g_v list for "-32" or "-64".  If
  20.      neither of these is given, then it checks the _a_r_g_v list for a "-mips[1-
  21.      4]" option.  Mips 1 and 2 imply _a_b_i_3_2 while mips 3 and 4 imply _a_b_i_6_4. If
  22.      none of the _a_r_g_v options specify the abi, then we check the _S_G_I__A_B_I
  23.      environment variable, which can be set to either "-32" or "-64".  If
  24.      _S_G_I__A_B_I is not in the environment, then we check what kernel is
  25.      installed.  If we are running on a system that has the 64-bit kernel,
  26.      then we default to _a_b_i_6_4; else we default to _a_b_i_3_2.
  27.  
  28.      The _g_e_n_e_r_i_c__s_i_z_e parameter says whether to return the ABI for the generic
  29.      size (_a_b_i_3_2 or _a_b_i_6_4), or to return the specific ABI (_a_b_i_o_3_2 or _a_b_i_6_4).
  30.  
  31.      The _m_o_d_i_f_y__a_b_i__a_r_g parameter says whether to ignore the _a_r_g_v list when
  32.      determining the ABI, or, if we do use the _a_r_g_v list, whether to preserve
  33.      the _a_r_g_v list, or add the default abi value to the _a_r_g_v list, or remove
  34.      the abi value from the _a_r_g_v list.  This gives extra flexibility to users
  35.      in how ABI options are handled in the _a_r_g_v list.  This is also why the
  36.      _a_r_g_v and _a_r_g_c options are passed by address, so their values can possibly
  37.      be modified by _g_e_t_a_b_i().
  38.  
  39. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  40.      _gggg_eeee_tttt_aaaa_bbbb_iiii(1)
  41.  
  42. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  43.      _gggg_eeee_tttt_aaaa_bbbb_iiii prints an error message on the standard error and returns _n_o_a_b_i
  44.      when it encounters an error.
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.